package la.bbs558.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import la.bbs558.entity.BbsBoard;
import la.bbs558.entity.vo.BbsBoardVO;
import la.bbs558.entity.params.BoardSearchPage;
import org.apache.ibatis.annotations.Param;

/**
 * 板块(BbsBoard)表数据库访问层
 *
 * @author Shanks
 * @since 2023-12-15 22:40:43
 */
public interface BbsBoardDao extends BaseMapper<BbsBoard> {

    IPage<BbsBoardVO> selectListByPageForAdmin(@Param("search") BoardSearchPage searchPage);

    void updatePostCnt(@Param("id") Long postId);
}

